home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 April: Mac OS SDK / Dev.CD Apr 96 SDK / Dev.CD Apr 96 SDK1.toast / Development Kits (Disc 1) / OpenDoc Development Framework / ODFDev / ODF / OS / FWGraphx / Sources / FWGrGlob.cpp < prev    next >
Encoding:
Text File  |  1995-11-08  |  2.3 KB  |  94 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                FWGrGlob.cpp
  4. //    Release Version:    $ 1.0d11 $
  5. //
  6. //    Copyright:    © 1993, 1995 by Apple Computer, Inc., all rights reserved.
  7. //
  8. //========================================================================================
  9.  
  10. #include "FWOS.hpp"
  11.  
  12. #ifndef FWGRGLOB_H
  13. #include "FWGrGlob.h"
  14. #endif
  15.  
  16. //========================================================================================
  17. //    RunTime Info
  18. //========================================================================================
  19.  
  20. #if FW_LIB_EXPORT_PRAGMAS
  21. #pragma lib_export on
  22. #endif
  23.  
  24. #ifdef FW_BUILD_MAC
  25. #pragma segment fwgraphx
  26. #endif
  27.  
  28. //========================================================================================
  29. //    Private globals
  30. //========================================================================================
  31.  
  32. // ----- Standard Transfer Modes -----
  33. #ifdef FW_BUILD_MAC
  34. const short FW_gTransferModes[11] =
  35. {
  36.     patCopy,            //    FW_kCopy
  37.     notPatCopy,        //    FW_kNotCopy
  38.     patOr,            //    FW_kOr
  39.     notPatOr,        //    FW_kNotOr
  40.     patXor,            //    FW_kXOr
  41.     notPatXor,        //    FW_kNotXOr
  42.     patBic,            //    FW_kClear
  43.     notPatBic,        //    FW_kNotClear
  44.     patXor,            //    FW_kHilite
  45.     patCopy,        //    FW_kErase
  46.     patCopy,        //    FW_kInvert
  47. };
  48. #endif
  49.  
  50. #ifdef FW_BUILD_WIN
  51.  
  52. // Don't forget than on windows black and white are inverted. It is why it seems that the xxNOTxx is at
  53. // the wrong place
  54.  
  55. const int FW_gTransferModes[11] =
  56. {
  57.     R2_COPYPEN,        //    FW_kCopy
  58.     R2_NOTCOPYPEN,     //    FW_kNotCopy
  59.     R2_NOTMERGEPEN, //    FW_kOr
  60.     R2_MERGEPEN,    //    FW_kNotOr
  61.     R2_NOTXORPEN,     //    FW_kXOr
  62.     R2_XORPEN,        //    FW_kNotXOr        
  63.     R2_NOTMASKPEN,     //    FW_kClear
  64.     R2_MASKPEN,        //    FW_kNotClear
  65.     R2_NOTXORPEN,     //    FW_kHilite
  66.     R2_COPYPEN,         //    FW_kErase
  67.     R2_NOTXORPEN     //    FW_kInvert
  68. };
  69.                                                 
  70. const DWORD FW_gWinRasterOps[11] =    
  71. {
  72.     SRCCOPY,        //    FW_kCopy
  73.     NOTSRCCOPY,        //     FW_kNotCopy
  74.     SRCPAINT,        //  FW_kOr
  75.     MERGEPAINT,        //    FW_kNotOr
  76.     SRCINVERT,        //    FW_kXOr
  77.     0x00990066UL,    //    FW_kNotXOr
  78.     SRCAND,            //    FW_kClear
  79.     0x00440328UL,    //    FW_kNotClear
  80.     SRCINVERT,         //    FW_kHilite
  81.     SRCCOPY,         //    FW_kErase
  82.     SRCINVERT         //    FW_kInvert
  83. };
  84. #endif
  85.  
  86. // ----- Graphic globales -----
  87. FW_CGraphicContext*        FW_gLastGC = NULL;
  88. FW_CRasterizer*         FW_gRasterizer = NULL;
  89.  
  90. #ifdef FW_BUILD_MAC
  91. WindowPtr                 FW_gScratchWindow = NULL;
  92. #endif
  93.  
  94.